<form id="edit-form" class="form-horizontal mf-form" role="form" data-toggle="validator" method="POST" action="">
    <div>
        <ul class="nav nav-tabs" role="tablist">
            <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab">客户资料</a></li>
            <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">报备信息</a></li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="home">
                <div class="container">
                    <div class="row">
                        <div class="col col-xs-7">
                            <table class="table table-borderd">
                                <tr>
                                    <td class="mf-td-title" style="width:100px">{:__('Customer_name')}:</td>
                                    <td class="mf-td-input">{$customer_model->customer_name|htmlentities}</td>
                                    <td class="mf-td-title" style="width:120px">{:__('Customer_tel')}:</td>
                                    <td class="mf-td-input">{$customer_model->customer_tel|htmlentities}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Sex_radio')}:</td><td class="mf-td-input"> 
                                        <div class="radio">
                                            {$customer_model->sex_radio}
                                        </div>
                                    </td>
                                    <td class="mf-td-title">{:__('Want_area')}:</td>
                                    <td class="mf-td-input" style="position:relative">{$customer_model->want_area|htmlentities}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('First_house')}:</td>
                                    <td class="mf-td-input"> 
                                        <div>
                                        {$customer_model->first_house}
                                        </div>
                                    </td>
                                    <td class="mf-td-title">{:__('Social_security')}:</td><td class="mf-td-input">{$customer_model->social_security}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Payment_percentage')}:</td>
                                    <td class="mf-td-input">{$customer_model->payment_percentage|htmlentities}%</td>
                                    <td class="mf-td-title">{:__('Payment_method')}:</td>
                                    <td class="mf-td-input">
                                        <div>
                                            {$customer_model->payment_method}
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">面积(平方米):</td>
                                    <td class="mf-td-input">
                                        <div class="input-group">
                                            <div class="mf-td-split">{$customer_model->want_acre_low|htmlentities}</div>
                                            <div class="mf-td-split">至</div>
                                            <div class="mf-td-split">{$customer_model->want_acre_high|htmlentities}</div>
                                        </div>
                                    </td>
                                    <td class="mf-td-title">期望总价(万元):</td>
                                    <td class="mf-td-input">
                                        <div class="input-group">
                                            <div class="mf-td-split">{$customer_model->want_price_low|htmlentities}</div> 
                                            <div class="mf-td-split">至</div>
                                            <div class="mf-td-split">{$customer_model->want_price_high|htmlentities}</div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">期望楼层:</td>
                                    <td class="mf-td-input">
                                        <div class="input-group">
                                            <div class="mf-td-split">{$customer_model->want_floor_low}</div>
                                            <div class="mf-td-split">至</div>
                                            <div class="mf-td-split"> {$customer_model->want_floor_high}</div>
                                        </div>
                                    </td>
                                    <td class="mf-td-title">客户来源:</td>
                                    <td>{$customer_model->customer_from}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Property_quantity')}:</td>
                                    <td class="mf-td-input">{$customer_model->property_quantity}</td>
                                    <td class="mf-td-title">{:__('Marriage_radio')}:</td>
                                    <td class="mf-td-input">
                                            {$customer_model->marriage_radio}
                                    </td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Mem')}:</td>
                                    <td class="mf-td-input" colspan="3"> {$customer_model->mem}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Account_statement')}:</td>
                                    <td class="mf-td-input" colspan="3"> {$customer_model->account_statement}</td>
                                </tr>
                                <tr>
                                    <td class="mf-td-title">{:__('Credit_investigation')}:</td>
                                    <td class="mf-td-input" colspan="3"> {$customer_model->credit_investigation}</td>
                                </tr>
                            </table>
                        </div>
                        <div class="col col-xs-5">
                            <div class="panel panel-success">
                                <div class="panel-heading">跟进记录</div>
                                <div class="panel-body" style="overflow: hidden">
                                    <div class="container-fluid no-margin no-padding" id="ulFollow" >
                                        <ul class="list-group">
                                            {volist name="follow_list" id="vo"}
                                                <li  class="list-group-item">[{:date('Y-m-d H:i:s',$vo.create_time)}][{$vo.state}]{$vo.follow_content}</li>
                                            {/volist}
                                        </ul>
                                    </div>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div role="tabpanel" class="tab-pane" id="profile"><!--tab-->
                <div class="row">
                    <div class="col {eq name="historycount" value="0"} col-xs-12 {else} col-xs-8 {/eq}">
                        <div class="panel panel-default"><!--left tab-->
                            <div class="panel-heading">
                                <h3 class="panel-title">报备信息</h3>
                            </div>
                            <div class="panel-body">
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">客户姓名:</label>
                                    <div class="control-label col-xs-12 col-sm-4" style="text-align: left !important">
                                        {$row->newhousecustomer->customer_name}
                                    </div>
                                    <label class="control-label col-xs-12 col-sm-2">报备楼盘:</label>
                                    <div class="control-label col-xs-12 col-sm-4" style="text-align: left !important">
                                            {$row->newhousebuilding->building_name}
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">老带新:</label>
                                    <div class="control-label col-xs-12 col-sm-10" style="text-align: left !important">
                                        {$row->newhousecustomer->from_friend?"是":"否"}
                                    </div>
                                </div>                
                                {eq name="$row->newhousecustomer->from_friend" value="1"}
                                <div class="form-group"> 
                                    <label class="control-label col-xs-12 col-sm-2">推荐人姓名:</label>
                                    <div class="control-label col-xs-12 col-sm-4" style="text-align: left !important">
                                            {$row->newhousecustomer->friend_name}
                                    </div>
                                    <label class="control-label col-xs-12 col-sm-2">推荐人电话:</label>
                                    <div class="control-label col-xs-12 col-sm-4" style="text-align: left !important">
                                            {$row->newhousecustomer->friend_mobile}
                                    </div>
                                </div>
                                {/eq}
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">报备人:</label>
                                    <div class="col-xs-12 col-sm-10 control-label" style="text-align: left">
                                        {$parent_nickname} {$row.newhousecreateadmin.nickname}
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2" >报备时间:</label>
                                    <div class="col-xs-12 col-sm-4 control-label" style="text-align: left">
                                        {:date('Y-m-d H:i:s',$row.newhousecreateadmin.createtime)}
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="control-label col-xs-12 col-sm-2">报备说明:</label>
                                    <div class="control-label  col-xs-12 col-sm-8"  style="text-align: left !important">
                                        <p>{$row.contents}</p>
                                    </div>
                                </div>
                            </div>
                        </div><!--left tab end-->
                    
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">审核</h3>
                            </div>
                            <div class="panel-body">
                                <div class="form-group">
                                    <div class="control-label col-xs-12 col-sm-2">审核结果:</div>
                                    <div class="col-xs-12 col-sm-5 control-label" style="text-align: left;padding-top: 0px">
                                        <label class="radio-inline">
                                            <input type="radio" name="row[verify_state]" id="inlineRadio0" {in name="$row->verify_state" value="未审核"}checked{/in} value="未审核"> 未审核
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="row[verify_state]" id="inlineRadio1" {in name="$row->verify_state" value="有效"}checked{/in} value="有效"> 有效
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="row[verify_state]" id="inlineRadio2" {in name="$row->verify_state" value="无效"}checked{/in} value="无效"> 无效
                                        </label>
                                    </div>
                                    {eq name="$row->newhousecustomer->from_friend" value="1"}
                                    <div class="control-label col-xs-12 col-sm-2">老带新:</div>
                                    <div class="col-xs-12 col-sm-3 control-label" style="text-align: left;padding-top: 0px">
                                        <label class="radio-inline">
                                            <input type="radio" name="row[verify_friend]" id="inlineRadio3" {in name="$row->newhousecustomer->verify_friend" value="1"}checked{/in} value="1"> 有效
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" name="row[verify_friend]" id="inlineRadio4" {in name="$row->newhousecustomer->verify_friend" value="0"}checked{/in} value="0"> 无效
                                        </label>
                                    </div>
                                    {/eq}
                                </div>
                                <div class="form-group">
                                    <div class="control-label col-xs-12 col-sm-2">审核时间:</div>
                                    <div class="col-xs-12 col-sm-4 control-label" style="text-align: left">
                                        <p> {:date('Y-m-d h:i:s',$row.updatetime)}</p>
                                    </div>
                                    <div class="control-label col-xs-12 col-sm-2">审核说明:</div>
                                    <div class="col-xs-12 col-sm-4">
                                        <textarea name="row[verify_mem]" class="form-control">{$row.verify_mem}</textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--right-->
                    <?php if(sizeof($history)>0){ ?>
                    <div class="col col-xs-4">
                        <div class="panel panel-warning">
                            <div class="panel-heading">
                                <h3 class="panel-title">报备记录提示</h3>
                            </div>
                            <div class="panel-body">
                                <ul>
                                    {volist name='history' id='vo'}
                                    <li>
                                        <p>报备时间：{:date('Y-m-d h:i:s',$vo.createtime)} </p>
                                        <p>报备人：{$vo->newhousecreateadmin->nickname}</p>
                                        <p>审核状态：{$vo->verify_state}</p>
                                    </li>
                                    {/volist}
                                </ul>
                            </div>
                        </div>
                    </div>
                    <?php } ?>
                    <!--right end-->
                </div>

            </div><!--tab end-->
            
        </div>
    </div>
    


    
    
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
    